Skip to content

feat(enterprise): add oidc onboarding flow#66

Closed
Gracker wants to merge 1 commit intofeature/enterprise-multi-tenant-auth-modesfrom
feature/enterprise-multi-tenant-oidc-onboarding
Closed

feat(enterprise): add oidc onboarding flow#66
Gracker wants to merge 1 commit intofeature/enterprise-multi-tenant-auth-modesfrom
feature/enterprise-multi-tenant-oidc-onboarding

Conversation

@Gracker
Copy link
Copy Markdown
Owner

@Gracker Gracker commented May 8, 2026

Summary

  • add provider-agnostic OIDC login/callback using discovery, token exchange, and userinfo
  • persist SSO sessions and audit events in the enterprise SQLite schema
  • add onboarding session/workspace-selection endpoints and allow ready SSO sessions through RequestContext auth
  • mark README §0.2.2 complete

Scope note

  • This does not choose a specific IdP vendor. Configure SMARTPERFETTO_OIDC_ISSUER_URL and standard OIDC client env for Okta/Auth0/Azure/etc.
  • Frontend workspace selection remains §0.2.7.

Verification

  • cd backend && npx jest src/services/__tests__/enterpriseSchema.test.ts src/services/__tests__/enterpriseOidcClient.test.ts src/routes/__tests__/enterpriseAuthRoutes.test.ts src/middleware/__tests__/auth.test.ts src/routes/__tests__/requestContextRouteCoverage.test.ts src/routes/__tests__/ownerGuardRoutes.test.ts src/services/__tests__/sessionPersistenceService.test.ts --runInBand
  • cd backend && npm run typecheck
  • npm run verify:pr

mr-torto pushed a commit to mr-torto/SmartPerfetto that referenced this pull request May 8, 2026
…racker#19, Gracker#46, Gracker#65, Gracker#66, Gracker#106, Gracker#107)

GpuSurfaceFlingerContract is the joint root-cause contract for GPU,
SurfaceFlinger, and composition. Five facets (all optional, all with
explicit provenance):
- GpuRenderStage[] with vendorBucket for Mali / Adreno / PowerVR
  attribution (Spark Gracker#14)
- SurfaceFlingerComposition[] tracking HWC fallback and BufferStuffing
  (Spark Gracker#19)
- GpuMemorySnapshot[] for GPU memory pressure (Spark Gracker#14)
- GpuProfilerImport[] for AGI / Mali / Snapdragon / PowerVR / GameBench
  imports (Spark Gracker#65, Gracker#66, Gracker#106, Gracker#107)
- surfaceFlingerLatency for dumpsys SurfaceFlinger --latency parser
  output (Spark Gracker#46)

Plan: docs/superpowers/spark/plans/16-gpu-surfaceflinger-composition.md

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mr-torto pushed a commit to mr-torto/SmartPerfetto that referenced this pull request May 8, 2026
buildGpuSurfaceFlinger combines render-stage breakdown, SF compositions,
GPU memory snapshots, vendor profiler imports and SF latency parser
output into one GpuSurfaceFlingerContract with per-facet coverage:
- AGI imports flip Spark Gracker#65/Gracker#106 to implemented
- Vendor (mali / snapdragon / powervr) imports flip Spark Gracker#66/Gracker#107
- SF latency parser output flips Spark Gracker#46
- HWC composition rows flip Spark Gracker#19
- Render stages or GPU memory snapshots flip Spark Gracker#14

summarizeComposition() computes the HWC fallback rate and
BufferStuffing count over a window, useful for the report header.

Tests: 5 cases covering coverage promotion paths, unsupported, and the
composition summary statistics.

Plan: docs/superpowers/spark/plans/16-gpu-surfaceflinger-composition.md

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Gracker
Copy link
Copy Markdown
Owner Author

Gracker commented May 9, 2026

已通过 commit 67856ec (merge) + 023a84a (frontend rebuild) 合入 main,关闭此 PR。

@Gracker Gracker closed this May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant